package cn.bonoon.kernel.expression;

/**
 * 对查询语句进行解析，如：
 * select x.id,x.name from userentity x where x.owner={USER owner} and x.deleted=false and x.type={REQUEST t -l}；
 * 
 * 注意：这里解析的是整个查询语句
 * 
 * @author jackson
 *
 */
public class QueryExpressionWrapper extends AbstractExpressionWrapper{

	public static QueryExpressionWrapper valueOf(String ql) throws Exception {
		return new QueryExpressionWrapper(ql);
	}
	
	private QueryExpressionWrapper(String ql) throws Exception {
		internalParse(ql, defaultPropertyResolver());
	}
}
